/*
** main.c for  in /home/jousse_f//afs/rendu/math/103interpol
** 
** Made by florian jousseau
** Login   <jousse_f@epitech.net>
** 
** Started on  Tue Mar  1 17:27:46 2011 florian jousseau
** Last update Mon Mar  7 14:02:58 2011 florian jousseau
*/

#include "include/103.h"

int	gere_key(int keycode)
{
  if (keycode == 65307)
    exit(EXIT_SUCCESS);
  return (0);
}

int		main()
{
  t_number	nb;
  t_pos		pos;

  printf("\033[1;31mPoints donnes\033[00m et ");
  printf("\033[1;34mpolynome P\033[00m :\n");
  init_numbers(&nb);
  init_pos(&nb, &pos);
  pos.mlx_ptr = mlx_init();
  pos.win_ptr = mlx_new_window(pos.mlx_ptr, 815, 715, "Math - 103interpol");
  mlx_key_hook(pos.win_ptr, gere_key, &pos);
  mlx_expose_hook(pos.win_ptr, axe_y, &pos);
  mlx_loop(pos.mlx_ptr);
  return (0);
}
